<?php
require_once(dirname(__FILE__)."/../core/safeParam.php");
require_once('../includes/config.php');
require_once('../core/database.php');
require_once('../core/functions.php');
require_once('../core/pizza-feasts.php');

$admin = new module();

$function=$_GET['function'];

switch($function) {
  case "add-item" :
    $admin->menusItemAdd($_POST, $_FILES);
    break;

  case "edit-item" :
    $admin->menusItemModify($_POST, $_FILES);
    break;

  case "delete-item" :
    $admin->menusItemDelete($_GET);
    break;

  case "add-pizza" :
    $admin->pizzaAdd($_POST);
    break;

  case "edit-pizza" :
    $admin->pizzaEdit($_POST);
    break;
}

?>
